package com.zhang.TES;

import com.zhang.pojo.Books;
import com.zhang.service.BookService;
import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.List;

public class TEST {


    @Test
    public void test01(){

        ClassPathXmlApplicationContext context =
                new ClassPathXmlApplicationContext("applicationContext.xml");

        BookService bean = context.getBean("BookServiceImpl", BookService.class);
        List<Books> books = bean.queryBookName("我");
        System.out.println(books);

    }

}
